home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ClearPartStorage
- Sent: 7/24/96 9:16 AM
- Received: 7/24/96 9:31 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- And now my answer,
-
-
- You will see much improvement in ODF 2. I now maintained a diry flag in
- the content object so I will not externalize anything when externalize is
- called but your data haven't changed. Also I am not anymore emptying the
- part storage automatically like I was doing. I let you do it if you want
- (there are new utilities method to either empty a value or clear up the
- end of a value). Also, ODF 2 has now support for multiple kinds and
- implements the preferred kind recipe.
-
-
- >As I think Arni noted, the ODF practice of removing the part's prefered
- >kind and then letting the part externalize is causing severe document
- >bloat. Bento is not reclaiming the space very well.
- >
- >My own results... With 6 ODF based Rapid-I Button parts (with picture
- >labels and script actions) embedded in ODF Container, I can account for
- >about 200K of needed storage. After making a single change to the
- >document,
- >it bloats out to > 400K. Doing a "Save a Copy..." reduces the document
- >size
- >down to just over 200K.
- >
- >I think what's happening here is that if a silly little change is made to
- >an inconsequential little part, each part has to externalize itself. Thus,
- >each ODF part clobbers its old contents property, and Bento lets the
- >document size double.
- >
- >A good solution might be an "fPartChanged" flag in FW_CPart, set when
- >FW_CPart::Changed is called. Right now, that method just flags the
- >document
- >as dirty. If a part is unchanged, then it has no work to do at
- >externalization time.
- >
- >Now, for those of us caching data in frames, it would also be useful to
- >have a changed flag just for each FW_CFrame, so that we don't have to
- >externalize cache data for a frame that hasn't changed.
- >
- >This whole solution would also cut down on externalization time of ODF
- >parts. With lots of parts in a document, the time savings could be
- >significant.
- >
- >So, does this make any sense?
- >
- >Brad
- >
- ><mailto: "Brad Hutchings" brad@hutchings-software.com>
- ><http://www.hutchings-software.com>
- >
- >Got OpenDoc? Got Cyberdog? Then beta-test Rapid-I Button! Email me for
- >more
- >information...
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-